squares = []
for vaule in range(1,11):
    square = vaule**2
    squares.append(square)

print(squares)
#为了让代码更加简洁，可不使用临时变量square
#    squares.append(vaule**2)
#    print(squares)

print("\n")
#列表解析
squares1 = [vaule1**2 for vaule1 in range(1,11)]
print(squares1)
